<template>
    孙子组件B: {{student.age}}<br>
</template>
<script>
import { inject } from 'vue'

export default {
    setup() { 
       const student=inject('info')  
       return{
           student
       }
    }
}
</script>
